package com.wh.springboot.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wh.springboot.common.entity.Hesuan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author elsy
 * @since 2023-05-04
 */
public interface HesuanMapper extends BaseMapper<Hesuan> {

    Page<Hesuan> findPage(Page<Hesuan> page, @Param("username") String username);

    @Select("SELECT * FROM hesuan WHERE uid = #{userId}")
    List<Hesuan> findByUserId(Integer userId);
}
